package com.ling.sbbyyds.entity.community;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

/**
 * 帖子收藏表(CommunityPostsCollect)表实体类
 *
 * @author ling
 * @since 2022-08-13 17:48:00
 */
@Data
@Accessors(chain = true)
@Table(name = "sbb_community_posts_collect")
public class CommunityPostsCollect {
    /**
     * 主键ID
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 帖子ID
     */
    @NotEmpty(message = "帖子id不能为空")
    private Long postId;

}

